package com.bili.bili_data_api.controller;


import com.bili.bili_data_api.dao.pojo.Pingfen;
import com.bili.bili_data_api.service.ComicService;
import com.bili.bili_data_api.service.HuiyuanService;
import com.bili.bili_data_api.service.PingfenService;
import com.bili.bili_data_api.service.impl.PingfenServiceImpl;
import com.bili.bili_data_api.vo.ComicVo;
import com.bili.bili_data_api.vo.HuiyuanVo;
import com.bili.bili_data_api.vo.PingfenVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("anime")
public class AnimeController {

    @Autowired
    private PingfenService pingfenService;
    @Autowired
    private HuiyuanService huiyuanService;
    @Autowired
    private ComicService comicService;

    @GetMapping("animeRating")
    public PingfenVo getRating(){
        return pingfenService.getRating();
    }

    @GetMapping("animeCopy")
    public HuiyuanVo getCopy(){
        return huiyuanService.getCopy();
    }

    @GetMapping("comicType")
    public ComicVo getComicType(){
        return comicService.getComicType();
    }
}
